﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Cofe.Web.Controllers
{
    public class TestAPIController : Controller
    {
        //
        // GET: /TestAPI/

        public ActionResult Index(string test = null)
        {
            ViewBag.TestNames = Directory.GetFiles(Server.MapPath("/Views/TestAPI"))
                .Select(f => Path.GetFileNameWithoutExtension(f))
                .Where(n => n != "Index");

            if (test == null)
                return View();
            else return View(test);
        }

    }
}
